package iss.anxios.dao;

import iss.anxios.dto.RespondentAttributeAssociation;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository("respondentattributeassociationdao")
public class RespondentAttributeAssociationDaoImpl implements RespondentAttributeAssociationDao {
	
	@PersistenceContext
	EntityManager em;

	@Transactional
	@SuppressWarnings("unchecked")
	public List<RespondentAttributeAssociation> ListRespondentAttributeAssociation() {
		System.out.println("I am in the respondent attribute.......");
		return em.createQuery("Select ras from RespondentAttributeAssociation ras").getResultList();
	}

}
